<%@ page language="java" contentType="text/html; charset=UTF-8" isELIgnored="false" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <meta charset="UTF-8">
    <title>患者信息添加模板展示</title>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/common/bootstrap/css/bootstrap.css"
          media="all">
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/common/bootstrap/js/jquery-1.12.4.js"></script>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/common/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
    <div class="panel-body">
        <div class="col-sm-12">
            <table class="table table-bordered">
                <thead>
                <tr>
                    <th>模板名称</th>
                    <th>创建日期</th>
                    <th>版本号</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <c:forEach items="${templateList}" var="templatelist">
                    <tr align="center">
                        <td>${fn:substringAfter(templatelist.pageId, ",")} </td>
                        <td><fmt:formatDate value="${templatelist.creationDate}" pattern="yyyy-MM-dd"/></td>
                        <td>${templatelist.versionNumber}</td>
                        <td>
                            <button>
                                <a href='${pageContext.request.contextPath}/page/PatientInformation/addPatientInformation.jsp?pageId=${templatelist.pageId}&versionNumber=${templatelist.versionNumber}'>调用</a>
                            </button>
                        </td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
    </div>
</div>
</html>